﻿using System;
using System.Runtime.InteropServices;
namespace Gronia.WPF
{
    public static class WIN32Utilities
    {
        [DllImport("user32.dll", CharSet = CharSet.Auto)]
        public static extern IntPtr SendMessage(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam);
        [DllImport("user32.dll")]
        public static extern bool GetMonitorInfo(IntPtr hMonitor, MONITORINFO lpmi);
        [DllImport("User32.dll")]
        public static extern IntPtr MonitorFromWindow(IntPtr handle, int flags);
        [DllImportAttribute("user32.dll")]
        public static extern bool ReleaseCapture();
    }
}